package auctionServer.utilities;

import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;

public class User {
	private String name;
	private boolean logged;
	private int tcpPort;
	SecretKey key;
	IvParameterSpec ivSpec;
	private int rejectedCount;
	
	public User(boolean bool,String name, int tcpPort, SecretKey key, IvParameterSpec ivSpec){
		this.logged=bool;
		this.name=name;
		this.tcpPort=tcpPort;
		this.key=key;
		this.ivSpec=ivSpec;
	}
	public String getName() {
		return name;
	}
	public void setName(String val) {
		this.name=val;	
	}
	public boolean getValue() {
		return logged;	
	}
	public void setValue(boolean bool) {
		this.logged=bool;	
	}
	public int getTCPPort() {
		return tcpPort;	
	}
	public void setTCPPort(int portNumber) {
		this.tcpPort=portNumber;	
	}
	public SecretKey getKey() {
		return this.key;	
	}
	public void setKey(SecretKey key) {
		this.key=key;	
	}
	public IvParameterSpec getivSpec() {
		return this.ivSpec;	
	}
	public void setivSpec(IvParameterSpec ivSpec) {
		this.ivSpec=ivSpec;	
	}
	public int getRejectedCount() {
		return this.rejectedCount;	
	}
	public void setRejectedCount(int rejectedCount) {
		this.rejectedCount=rejectedCount;	
	}
}
